//
//  BJXieHeViewController.m
//  QuickCure1
//
//  Created by Apple on 16/11/2.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "BJXieHeViewController.h"

@interface BJXieHeViewController ()

@property(nonatomic,weak)UIWebView *webView ;
@end

@implementation BJXieHeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"公益活动";
   
    [self setupUI];
    
    [self loadHttpPage];
}

#pragma
#pragma mark - 搭建UI界面
-(void)setupUI{
    
    UIWebView *webView = [[UIWebView alloc]init];
    self.webView = webView;
   [self.view addSubview:webView];
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.mas_equalTo(self.view);
        
    }];
    
}

#pragma
#pragma mark - 加载网页数据
-(void)loadHttpPage{
    
    NSURL *url = [NSURL URLWithString:@"http://gongyi.cmbchina.com/yuejuan/index.html"];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [self.webView loadRequest:request];
    
    //设置网页数据适配问题
    [self.webView setScalesPageToFit:YES];
    
}


@end
